<!DOCTYPE html>
<html>
<head>
    <!--#include virtual="/public/inc/head.html"-->
    <!--#include virtual="/public/inc/seajs.html" -->
    <link rel="stylesheet" type="text/css" href="http://img-dev.myscrmimg.cn/projects/qmyx/public/css/main.css"/>
    <title>租户首页-添加应用</title>
</head>
<body data-permission="all">
<!--#include virtual="/public/inc/top_main.html" -->
<div class="container">
    <div class="wrap clearfix">
        <!--#include virtual="/public/inc/side_main.html" -->
        <div ng-hide="true" class="content content-loading"></div>

        <div class="content warp-content" ng-controller="queryService">
            <div class="grid-header mt5" style="position: relative; margin-bottom: 10px;">
                <div class="clearfix" style="padding-bottom:4px; font-weight: bold">
                    <span class="fl f14 lh30 text-indent f16">添加应用</span>
                </div>
                <div class="tab-bottom-line"></div>
            </div>
            <div ng-repeat="item in query.data" >
                <!--<div class="clearfix" style="padding-bottom:4px;">-->
                    <!--<span class="fl f14 lh30 text-indent f16" ng-bind="record.system">掌上售楼处</span>-->
                <!--</div>-->
                <div class="">
                    <div class="yzh-app-item clearfix">
                        <div class="yzh-app-item-left fl ta-c">
                            <i class="yzh-icon yzh-icon-{{item.appcode}} yzh-add-app-icon"></i>
                            <h3 class="ta-c pt10 pb5" ng-bind="item.name"></h3>
                            <!-- <p class="c9"><span class="mr10">已用：<em class="c-orange" ng-bind="item.used">10</em></span>可用：<span ng-bind="item.usable">20</span></p> -->
                        </div>
                        <div class="yzh-app-item-right fl">
                            <div class="flow clearfix">
                                <div class="flow-cell" ng-repeat="list in item.list"><span ng-bind="list.name"></span><em data-id="{{list.id}}" ng-click="delete(item.list,list.id)">×</em></div>
                                <a href="javascript:void(0)" class=""
                                    ui-dialog="选择项目"
                                    ui-dialog-data="item"
                                    ui-dialog-show="selectProjDialog(item, $dialog, $dialogScope)"
                                    ui-dialog-ok="saveSelect(item)"
                                    ui-dialog-cache="false"
                                    ui-dialog-url="dialog/select_project.html"><em class="icon-add">+</em>选择项目</a>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
            <div class="setp-ctrl">
                <div class="btns">
                    <a class="" href="javascript:void(0)" ng-click="save(query.data)">保存</a>
                    <a class="cancalset cancel" href="/index.shtml" data-no-token>取消</a>
                </div>
            </div>
        </div>
    </div>
</div>
<!--#include virtual="/public/inc/footer.html" -->
</body>
</html>
<script type="text/javascript">
    seajs.use("service/add_application/add_application");
</script>
